export default function getData() {
  return {
    legend: {},
    tooltip: {},
    dataset: {
      source: [
        ['Product', '2015', '2016', '2017'],
        ['Matcha Latte', ...randomize()],
        ['Milk Tea', ...randomize()],
        ['Cheese Cocoa', ...randomize()],
        ['Walnut Brownie', ...randomize()]
      ]
    },
    xAxis: {
      type: 'category'
    },
    yAxis: {},
    series: [{
      type: 'bar'
    }, {
      type: 'bar'
    }, {
      type: 'bar'
    }]
  }
}

function randomize() {
  return [0, 0, 0].map(v => {
    return Math.round(300 + Math.random() * 700) / 10
  })
}
